
package mutsumimod.actions;

import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.utility.WaitAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.core.Settings;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.vfx.combat.FlashAtkImgEffect;
import mutsumimod.patches.BreakPowerPatch;

public class SecretAction extends AbstractGameAction {
    private AbstractCard card;

    public SecretAction(AbstractCard card) {
        this.card = card;
    }

    public void update() {
        if(AbstractDungeon.player.hand.contains(card)) {
            AbstractDungeon.player.hand.moveToDiscardPile(card);
        } else if (AbstractDungeon.player.drawPile.contains(card)) {
            AbstractDungeon.player.drawPile.moveToDiscardPile(card);
        }else if(AbstractDungeon.player.exhaustPile.contains(card)) {
            card.unfadeOut();
            card.unhover();
            AbstractDungeon.player.exhaustPile.moveToDiscardPile(card);
        }
        isDone = true;
    }
}
